﻿<!doctype html>
<html class="no-js" lang="">
<head>
    <title>js test</title>
    <!-- css在这里link -->
    <!-- 这里可以指定jquery地址 -->
    <script src="http://~~~"></script>
    <script type="text/javascript">
        function testAlert(){
            alert("this is an alert.");
        }
        function testConfirm(){
            var r=confirm("this is a confirm");
            alert(r);
        }
        function testPrompt(){
            var r=prompt("this is a prompt","hint");
            alert(r);
        }
        function call(){
            <!--调用Android当中的函数-->
            var r = window.LocalJavaScript.callFromJS("dddd");
            alert(r);
        }
        function musicianship(params) {
            window.LocalJavaScript.callFromJS(params);
            alert(params);
        }
    </script>
</head>
<body>
<input type="button" onClick="testAlert()" value="testAlert"/>
<input type="button" onClick="testConfirm()" value="testConfirm"/>
<input type="button" onClick="testPrompt()" value="testPrompt"/>
<input type="button" onClick="call()" value="andorid call"/>
</body>
</html>